<!--  -->
<template>
  <div class="content">
    <div class="login">
      <div class="img"><img src="~assets/img/profile/avatar.svg" alt="" /></div>
      <div class="middle">
        <div>登录/注册</div>
        <div class="iphone">
          <i class="iconfont el-icon-mobile"></i> 暂无绑定手机号
        </div>
      </div>
      <i class="iconfont el-icon-arrow-right right"></i>
    </div>

    <div class="price">
      <ul>
        <li>
          <div>0.00元</div>
          <span>我的余额</span>
        </li>
        <li>
          <div>0个</div>
          <span>我的优惠</span>
        </li>
        <li>
          <div>0分</div>
          <span>我的积分</span>
        </li>
      </ul>
    </div>

    <div class="list">
      <ul v-for="(item, index) in message" :key="index">
        <li :class="item.class">
          <i class="iconfont" :class="item.icon"></i>
          <div>{{ item.title }}</div>
        </li>
      </ul>
    </div>

    <div class="fenge"></div>
  </div>
</template>

<script>
export default {
  name: "Content",
  data() {
    return {
      message: [
        {
          icon: "el-icon-message",
          title: "我的消息",
        },
        {
          icon: "el-icon-coin",
          title: "积分商城",
        },
        {
          icon: "el-icon-star-off",
          class:'vip',
          title: "会员卡",
        },
        {
          icon: "el-icon-shopping-cart-2",
          title: "我的购物车",
        },
        {
          icon: "el-icon-goods",
          title: "下载购物App",
        },
      ],
    };
  },
};
</script>

<style scoped>
.login {
  height: 80px;
  background-color: var(--color-tint);
  color: #fff;
  overflow: hidden;
}
.login .img {
  padding: 10px 0;
  float: left;
  margin-left: 15px;
}
.login .img img {
  width: 60px;
}
.middle {
  padding: 20px 0;
  padding-left: 10px;

  float: left;
}
.iphone {
  padding-top: 6px;
  font-size: 14px;
}
.right {
  line-height: 80px;
  font-size: 25px;
  margin-right: 15px;
  float: right;
}
.price {
  border-bottom: 15px solid #f2f2f2;
}
.price ul {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.price ul li {
  height: 80px;
  text-align: center;
  list-style: none;
  flex: 1;
  border-right: solid 1px #ddd;
}
.price ul li:nth-child(3) {
  border-right: none;
}
.price ul li div {
  padding-top: 20px;
  color: tomato;
  font-size: 20px;
}
.price ul li span {
  margin-top: 4px;
  font-size: 14px;
}
.list {
  padding: 10px 0;
  /* margin-left: 10px; */
}
.list ul li {
  display: flex;
  line-height: 40px;
  /* background: #ddd; */
}

.list ul li i {
  color: var(--color-tint);
  font-size: 20px;
  padding: 10px;
}
.list ul li div {
  flex: 1;
  border-bottom: 2px solid #e4e1e1;
}
.vip{
    height: 60px;
}
.vip>div{
    border-bottom: none;
}
.fenge{
    z-index: 999;
    width: 100%;
    height: 15px;
    background: #f3f3f3;
    position: absolute;
    top: 360px;
}
</style>